home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / porttool.zip / CAT.MAN < prev    next >
Text File  |  1992-12-03  |  3KB  |  74 lines

  1.  
  2.    NNAAMMEE
  3.       cat - concatenate and display files
  4.  
  5.    SSYYNNOOPPSSIISS
  6.       ccaatt [ -behnstuv ] [ _f_i_l_e_n_a_m_e ]...
  7.  
  8.    DDEESSCCRRIIPPTTIIOONN
  9.       ccaatt reads a file and writes it to the standard output.  If more
  10.       than one file is given, the files are concatenated and written in
  11.       sequence to the standard output.  If a file name is not given, or a
  12.       minus sign (-) is given as a file name, ccaatt reads from the standard
  13.       input.
  14.  
  15.    OOPPTTIIOONNSS
  16.       The options may be specified separately.
  17.  
  18.       --bb Omits line numbers from blank lines when used with the --nn
  19.          option.
  20.  
  21.       --ee When given with --vv, displays a dollar sign ($) at the end of
  22.          each line.
  23.  
  24.       --hh Display a longer help message.
  25.  
  26.       --nn Displays the output lines numbered sequentially from 1.
  27.  
  28.       --ss Squeezes multiple blank lines into one line.
  29.  
  30.       --tt When specified with --vv, displays tab characters as ^I.
  31.  
  32.       --uu Specifies unbuffered output.  (Supported but not implemented for
  33.          MS-DOS and OS/2).
  34.  
  35.       --vv Displays nonprinting characters.  For example, the delete
  36.          character (octal 0177) prints as ^? and non-ASCII characters
  37.          (with the high bit set) are printed as M- followed by the
  38.          character of the low 7 bits.
  39.  
  40.    EEXXAAMMPPLLEESS
  41.       C:> _c_a_t_ _n_e_w_s
  42.  
  43.       ccaatt writes the file named _n_e_w_s to the standard output.
  44.  
  45.       C:> _c_a_t_ _c_u_p_1_ _c_u_p_2_ _>_ _c_u_p_3
  46.  
  47.       ccaatt concatenates the first two files and places the result in the
  48.       third.
  49.  
  50.       C:> _c_a_t_ _-_s_ _l_o_n_g_ _>_ _s_h_o_r_t
  51.  
  52.       The following are the contents of _l_o_n_g and _s_h_o_r_t
  53.  
  54.          _l_o_n_g:       _s_h_o_r_t:
  55.          this is     this is
  56.  
  57.                      a file
  58.          a file
  59.  
  60.       ccaatt _-_s squeezed the two blank lines into one blank line.
  61.  
  62.    SSPPEECCIIAALL  CCOONNSSIIDDEERRAATTIIOONNSS
  63.       When more than one file name is given on the command line, ccaatt
  64.       prints the contents of the files without indicating where one file
  65.       ends and another file begins.
  66.  
  67.       Command formats such as _c_a_t_ _f_i_l_e_1_ _f_i_l_e_2_ _>_f_i_l_e_1 and
  68.       _c_a_t_ _f_i_l_e_1_ _f_i_l_e_2_ _>_f_i_l_e_2 destroy the input files before reading them.
  69.  
  70.    SSEEEE  AALLSSOO
  71.       cp(1), more(1), pr(1), tail(1)
  72.  
  73.    CCooppyyrriigghhtt  ((cc))  11999922    FFrraannkk  EE..  WWhhaalleeyy    AAllll  rriigghhttss  rreesseerrvveedd
  74.